package com.wly.datapool.bullet
{
	public class BulletPool
	{
		static private var _instance:BulletPool;
		private var _bulletArr:Array;
		
		public function BulletPool()
		{
			_instance = this;
			init();
		}
		
		private function init():void
		{
			var bulletStatic:BulletStatic;
			_bulletArr = [];
			
			bulletStatic = new BulletStatic;
			bulletStatic.modelCls = Bullet0;
			_bulletArr.push(bulletStatic);
		}
		
		static public function getInstance():BulletPool
		{
			return _instance;
		}		
		
		public function getBulletByIndex(index:int):BulletStatic
		{
			return _bulletArr[index] as BulletStatic;
		}
	}
}